<?php
/**
 * Admin Controller
 * @author Tomas Srna
 * @package bakalarka
 */

class AdminController extends Controller
{
	public function index()
	{
		$t = Template::instance();
			
		$t->title = L::selected()->administer;
		
		$t->text = '<div class="intersection">'.
						new Menu(array(
			new Link(L::selected()->users, 'admin', 'admin', 'user'),	
			new Link(L::selected()->acl, 'admin', 'admin', 'acl'),
			new Link(L::selected()->domains, 'admin', 'admin', 'domain'),
			new Link(L::selected()->hostings, 'admin', 'admin', 'hosting'),
			new Link(L::selected()->syslog, 'admin', 'admin', 'log'),
		)).
					'</div>';
		
		$t->render();
	}
}
 